package com.hydra.wiki.wda.tag;

import java.rmi.Naming;

import com.hydra.wiki.inter.WdaAppInter;
import com.hydra.wiki.parameter.FarmParameterService;

public class RmiServer {
    private static WdaAppInter personService = null;

    public static WdaAppInter getInstance() {
        try {
            if (personService == null) {
                personService = (WdaAppInter) Naming
                        .lookup(FarmParameterService.getInstance().getParameter("config.wda.rmi.url"));
            }
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return personService;
    }
}
